|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.OutMacroPropertyModel
public class OutMacroPropertyModel
This class represents an output property of a pricing macro
and contains a name, a description, a type and a default value.
The type of an output property must be string,
number, or date.
PricingMacroModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="outProperty">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="defaultValue" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Constructor Summary | |
|---|---|
OutMacroPropertyModel()
Constructs an empty output property model. |
|
OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type)
Constructs an output property with a name, a description and a type. |
|
OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type,
java.lang.Object defaultValue)
Constructs an output property with a name, a description, a type and a default value. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Returns true if the property is valid. |
java.util.Date |
getDateValue()
Gets the default value of the output property as a date. |
java.lang.Object |
getDefaultValue()
Gets the default value of the output property. |
java.lang.String |
getDescription()
Returns the description of the output property. |
java.lang.String |
getName()
Returns the name of the output property. |
java.math.BigDecimal |
getNumberValue()
Gets the default value of the output property as a decimal. |
java.lang.String |
getStringValue()
Gets the default value of the output property as a string. |
int |
getType()
Gets the type of the output property. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setDefaultValue(java.lang.Object defaultValue)
Sets the default value of the output property. |
void |
setDescription(java.lang.String d)
Sets the description of the output property. |
void |
setName(java.lang.String n)
Sets the name of the output property. |
void |
setType(int t)
Sets the type of the output property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutMacroPropertyModel()
public OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type,
java.lang.Object defaultValue)
setType(int) for allowed type value)
name - the name of the output property.description - the description of the output property.type - the type of the output property.defaultValue - the default value of the output property.
public OutMacroPropertyModel(java.lang.String name,
java.lang.String description,
int type)
setType(int) for type allowed value)
name - the name of the output property.description - the description of the output property.type - the type of the output property.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String n)
n - the name of the output property.public java.lang.String getDescription()
public void setDescription(java.lang.String d)
d - the description of the output property.public int getType()
public void setType(int t)
t - the type of the output property.public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object defaultValue)
defaultValue - the default value of the output property.public java.lang.String getStringValue()
public java.math.BigDecimal getNumberValue()
public java.util.Date getDateValue()
public boolean checkValidity()
setType(int)).
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||